package com.core.baseDao.extend;

//封装分页显示数据类
import java.util.List;

public class Pager {

	private int allRows;	//总行数

	private int pageSize = 10;	//显示行数

	private int currPage = 1;	//当前页数
	
	private int pages;		//总页数

	private List content;	//显示数据

	
	
	public int getAllRows() {
		return allRows;
	}

	public void setAllRows(int allRows) {
		this.allRows = allRows;
		this.pages = allRows/pageSize;
		if(this.pages==0){
			this.pages=1;
		}
	}

	public int getPageSize() {
		return pageSize;
	}

	public void setPageSize(int pageSize) {
		this.pageSize = pageSize;
	}

	public int getCurrPage() {
		return currPage;
	}

	public void setCurrPage(int currPage) {
		this.currPage = currPage;
	}

	public List getContent() {
		return content;
	}

	public void setContent(List content) {
		this.content = content;
	}

	public int getPages() {
		return pages;
	}

	public void setPages(int pages) {
		this.pages = pages;
	}

}